package com.sailfish.springbootdemo.service.db1;


import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.Upkeep;

import java.util.List;

public interface UpkeepService {

    /**
     * 新增
     *
     * @param upkeep
     * @return
     */
    Result addUpkeep(Upkeep upkeep);

    /**
     * 删除
     *
     * @param upkeepId
     * @return
     */
    Result deleteUpkeep(Integer upkeepId);

    /**
     * 更新
     *
     * @param upkeep
     * @return
     */
    Boolean updateUpkeep(Upkeep upkeep) throws Exception;

    /**
     * 根据资产编号查询
     *
     * @param assetNumber
     * @return
     */
    List<Upkeep> getUpkeepByAssetNumber(String assetNumber);
}
